box: Make sure center_req is initialized
authorTimm Bäder <mail@baedert.org>
Mon, 20 Mar 2017 13:16:56 +0000 (14:16 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Mon, 20 Mar 2017 20:57:07 +0000 (20:57 +0000)
In case we have an invisible center widget, we never initialize it, but
later still use it.

gtk/gtkbox.c

index e39eb495a56d50d9d1bb257033d60504d4a23c89..e034be851b9689c3cbd8a0b90662e0e7823fbe70 100644 (file)
@@ -830,7 +830,7 @@ gtk_box_size_allocate_with_center (GtkWidget           *widget,
   GtkTextDirection direction;
   GtkAllocation child_allocation;
   GtkRequestedSize *sizes[2];
-  GtkRequestedSize center_req;
+  GtkRequestedSize center_req = {0, 0};
   gint child_minimum_baseline, child_natural_baseline;
   gint minimum_above, natural_above;
   gint minimum_below, natural_below;